package net.cloud.sfs.myrule;

import com.netflix.loadbalancer.IRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ShengRule {

    @Bean
    public IRule myRule(){
        return new ShengRandomRule(); //默认是轮询，现在自定义为ShengRuandomRule
    }
}
